<?php

class Repost {
	private $id;
	private $user_id;
	private $prevPostId;
	private $originalPost;
	private $displayedPost;

	public function __construct() {
		
	}

	public function getId() {
		return $this->id;		
	}
	
	public function setId($id) {
		$this->id=$id;
	}
	
	public function getUserId() {
		return $this->user_id;
	}
	
	public function setUserId($userId) {
		$this->userId=$userId;		
	}
	
	public function getPrevPost() {
		return $this->prevPostId;		
	}
	
	public function setPrevPost($id) {
		$this->prevPostId=$id;
	}
	
	public function getOriginalPost() {
		return $this->originalPost;		
	}	
	
	public function setOriginalPost($id) {
		$this->originalPost=$id;
	}
	
	public function getDisplayedPost() {
		return $this->displayedPost;		
	}	
	
	public function setDsiplayedPost($id) {
		$this->displayedPost=$id;
	}
	
	public static function addRepostStatement() {
		return "INSERT INTO repost(id,prev_post_id,displayed_post_id,original_post_id)
				VALUES (DEFAULT,?,?,?)";
	}
	
}

?>